package com.example.fresh_fruit.util;

import java.util.Random;

/**
 * @author :飞天の鱼
 * @date : 2022/8/23 9:57
 * 生成一个不重复的12位随机数
 */
public class RandomMath {
        public static String RandomMath(){
            String str="";
            Random random=new Random();
            for (int i = 0; i < 12; i++) {
                if (i==0){
                    str+=(random.nextInt(9)+1);
                }else{
                    str+=random.nextInt(10);
                }
            }
            return str;
        }
    }

